package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiModuleRegistryMapper;
import com.ruoyi.slope.ai.domain.SlopeAiModuleRegistry;
import com.ruoyi.slope.ai.service.ISlopeAiModuleRegistryService;

/**
 * 三级模块目录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiModuleRegistryServiceImpl implements ISlopeAiModuleRegistryService 
{
    @Autowired
    private SlopeAiModuleRegistryMapper slopeAiModuleRegistryMapper;

    /**
     * 查询三级模块目录
     * 
     * @param moduleId 三级模块目录主键
     * @return 三级模块目录
     */
    @Override
    public SlopeAiModuleRegistry selectSlopeAiModuleRegistryByModuleId(String moduleId)
    {
        return slopeAiModuleRegistryMapper.selectSlopeAiModuleRegistryByModuleId(moduleId);
    }

    /**
     * 查询三级模块目录列表
     * 
     * @param slopeAiModuleRegistry 三级模块目录
     * @return 三级模块目录
     */
    @Override
    public List<SlopeAiModuleRegistry> selectSlopeAiModuleRegistryList(SlopeAiModuleRegistry slopeAiModuleRegistry)
    {
        return slopeAiModuleRegistryMapper.selectSlopeAiModuleRegistryList(slopeAiModuleRegistry);
    }

    /**
     * 新增三级模块目录
     * 
     * @param slopeAiModuleRegistry 三级模块目录
     * @return 结果
     */
    @Override
    public int insertSlopeAiModuleRegistry(SlopeAiModuleRegistry slopeAiModuleRegistry)
    {
        return slopeAiModuleRegistryMapper.insertSlopeAiModuleRegistry(slopeAiModuleRegistry);
    }

    /**
     * 修改三级模块目录
     * 
     * @param slopeAiModuleRegistry 三级模块目录
     * @return 结果
     */
    @Override
    public int updateSlopeAiModuleRegistry(SlopeAiModuleRegistry slopeAiModuleRegistry)
    {
        return slopeAiModuleRegistryMapper.updateSlopeAiModuleRegistry(slopeAiModuleRegistry);
    }

    /**
     * 批量删除三级模块目录
     * 
     * @param moduleIds 需要删除的三级模块目录主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiModuleRegistryByModuleIds(String[] moduleIds)
    {
        return slopeAiModuleRegistryMapper.deleteSlopeAiModuleRegistryByModuleIds(moduleIds);
    }

    /**
     * 删除三级模块目录信息
     * 
     * @param moduleId 三级模块目录主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiModuleRegistryByModuleId(String moduleId)
    {
        return slopeAiModuleRegistryMapper.deleteSlopeAiModuleRegistryByModuleId(moduleId);
    }
}
